﻿<div id="member">
    <div class="ng-scope">
        <div class="header ng-scope">
            <img src="img/tou.png" class="img">
            <p class="mobile ng-binding"></p>
            <p class="nickname ng-binding"></p>
            <a class="ng-binding" href="doLogout" style="float: right; margin-top: 10px; margin-right: 15px;">退出</a>
        </div>
        <div style="clear:both;background:#E0E0E0;height:5px;" class="ng-scope"></div>
        <ul class="headerlist ng-scope">
            <li class="ng-binding">
                消费积分余额 ￥100.00
            </li>
            <li class="ng-binding">
                累计消费 ￥0.00
            </li>
        </ul>
        <div style="clear:both;background:#E0E0E0;height:5px;" class="ng-scope"></div>
        <ul class="userlist ng-scope">
            <li>
                <a href="#">
                    <p class="ico ico-reward"></p>
                    <p>每日签到</p>
                </a>
            </li>
            <li>
                <a href="#" onclick="switchOrder()">
                    <p class="ico ico-order"></p>
                    <p>我的订单</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <p class="ico ico-recommend"></p>
                    <p>推荐有礼</p>
                </a>
            </li>
            <li>
                <a href="memberPoints.html">
                    <p class="ico ico-coupon"></p>
                    <p>积分明细</p>
                </a>
            </li>
            <li>
                <a href="#">
                    <p class="ico ico-about"></p>
                    <p>关于我们</p>
                </a>
            </li>
            <li>
                <a href="comments.html">
                    <p class="ico ico-customer"></p>
                    <p>客服/反馈</p>
                </a>
            </li>
        </ul>
    </div>
</div>

<script>
	$(function(){
		getUserInfo();
	})
	function getUserInfo(){
		$.getJSON("doFindUser", function(result){
			$(".mobile").text(result.data.username);
			$(".nickname").text(result.data.phone);
		})
	}
    function switchOrder() {
        $("#mainContent").load("doOrderUI");
    }
</script>
